<template>
    <div id="wangeditor">
        
    </div>
</template>

<script>
import E from 'wangeditor'
export default {
    data() {
        return {
            editor: ''
        }
    },
    mounted() {
        this.editor = new E('#wangeditor')
        this.editor.config.menus = ['bold','head','link','italic','underline']
        this.editor.focus = false
        this.editor.config.onchange = (value) => {
            this.$emit('sendEditor',value)
        }
        this.editor.config.onchangeTimeout = 500
        this.editor.create()
    },
    methods: {

    }
}
</script>

<style scoped lang="less"></style>
